package com.iword.simple.event.demo;

public class ParamDto {
	private String name ;
	private String code ;
	private String type ;
	private ParamDto(Builder builder) {
		this.name = builder.name;
		this.code = builder.code;
		this.type = builder.type;
	}
	public ParamDto() {
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public static Builder builder() {
		return new Builder();
	}
	public static final class Builder {
		private String name;
		private String code;
		private String type;

		private Builder() {
		}

		public Builder name(String name) {
			this.name = name;
			return this;
		}

		public Builder code(String code) {
			this.code = code;
			return this;
		}

		public Builder type(String type) {
			this.type = type;
			return this;
		}

		public ParamDto build() {
			return new ParamDto(this);
		}
	}

	@Override
	public String toString() {
		return "ParamDto{" +
				"name='" + name + '\'' +
				", code='" + code + '\'' +
				", type='" + type + '\'' +
				'}';
	}
}
